package org.shnux.android.bingo;



import com.admob.android.ads.AdManager;
import com.admob.android.ads.AdView;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;



import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class MenuActivity extends Activity {
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);
   
        Button bwords = (Button) findViewById(R.id.bwords); 
        Button bstart = (Button) findViewById(R.id.bstart); 
        Button babout = (Button) findViewById(R.id.babout); 
  
      	Typeface font = Typeface.createFromAsset(getAssets(), "good.ttf");  
        bwords.setTypeface(font); 
        bstart.setTypeface(font);
        babout.setTypeface(font);
        
    }
    
    public void onGame(View v){
    	//
    	this.finish();
    	Intent intent = new Intent(getApplicationContext(),GameActivity.class);    	
    	startActivity(intent);
    }
    public void onWords(View v){
    	//
    	this.finish();
    	Intent intent = new Intent(getApplicationContext(), TextEditor.class);    	
    	startActivity(intent);
    }
    public void onAbout(View v){
    	//
    	this.finish();
    	Intent intent = new Intent(getApplicationContext(), AboutActivity.class);    	
    	startActivity(intent);
    }

    public void  onWindowFocusChanged  (boolean hasFocus){
    	if (hasFocus)
        {
    			//
         //   AdManager.setTestDevices( new String[] {
         //  		AdManager.TEST_EMULATOR, // Android emulator
         //   		"E83D20734F72FB3108F104ABC0FFC738", // My T-Mobile G1 Test Phone
         //   		} );
          //  AdView adview= (AdView) findViewById(R.id.ad2);
          //  adview.requestFreshAd();    		
        }
        else
        {   
        	//
        }

  }
    
}